import React from "react";
import IdSelect from "components/id-select";
import { useTaskTypes } from "server";

const TaskTypeSelect: React.FC<React.ComponentProps<typeof IdSelect>> = (
  props
) => {
  const { data: tasks } = useTaskTypes();

  return <IdSelect options={tasks || []} {...props} />;
};

export default TaskTypeSelect;
